<template>
    <el-card class="box-card">
        <div slot="header" class="clearfix">
            <span>{{$t('msg.profile.introduce')}}</span>
        </div>
        <div class="user-profile">
            <div class="profile-logo">
                <img :src="$store.getters.userInfo.avatar" alt="">
            </div>
            <div class="profile-title">
                <h4>super-admin</h4>
                <span>{{$t('msg.profile.position')}}</span>
            </div>
        </div>
        <div class="project">
            <div class="project-title">
                <svg-icon icon="introduce"></svg-icon>
                <span>{{$t('msg.profile.projectIntroduction')}}</span>
            </div>
            <div class="project-content">
                {{$t('msg.profile.muted')}}
            </div>
        </div>
        <div class="feature">
            <div class="feature-title">
                <svg-icon icon="reward"></svg-icon>
                <span>{{$t('msg.profile.projectIntroduction')}}</span>
            </div>
            <div class="feature-content" v-for="(item,index) in featureArray">
                <div class="smalltitle">{{item.title}}</div>
                <el-progress :percentage="item.percentage" status="success"></el-progress>
            </div>
        </div>
    </el-card>
</template>

<script>
export default {
    name: '',
    props:{
        featureArray:{
            type:Array,
            default:[]
        }
    },
    data() {
        return {
            
        };
    },
    created(){

    },
    mounted() {
    },

    methods: {
        
    },
};
</script>

<style lang="scss" scoped>
.user-profile {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  .profile-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .profile-title {
    padding-top: 10px;
    text-align: center;
    span {
      font-size: 14px;
      padding-top: 10px;
      color: #777;
      display: inline-block;
    }
  }
}
.project {
  margin-top: 10px;
  margin-bottom: 36px;
  .project-title {
    padding: 10px 0;
    font-weight: 700;
    margin-bottom: 10px;

    color: #777;
    border-bottom: 1px solid #ccc;
    span {
      margin-left: 4px;
    }
  }
  .project-content {
    font-size: 14px;
    color: #777;
  }
}
.feature {
  .feature-title {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    span {
      margin-left: 4px;
    }
  }
  .feature-content {
    margin-top: 10px;
    .smalltitle{
        font-size: 14px;
        margin-bottom: 2px;
        color: #606266
    }
    .el-progress{
        margin-bottom: 2px;

    }
  }
}
</style>